<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload=function () {
            var myJson = { "key1": "韩顺平教育", // 字符串
                "key2": 123, // Number
                 "key3": [1, "hello", 2.3], // 数组
                "key4": {"age": 12, "name": "jack"}, //json 对象
                "key5": [ //json 数组
                    {"k1": 10, "k2": "milan"}, {"k3": 30, "k4": "smith"}
                ]
            };

            console.log("key1的值是"+myJson.key1)
            console.log("key3的值是"+myJson.key3)
            for(var  i=0;i<myJson.key3.length;i++){
                console.log("key3第%i的值是",i,myJson.key3[i])
            }
            console.log("key4的age值是",myJson.key4.age)
            console.log("key5的值是",myJson.key5)
            console.log("key5的值是",myJson.key5[1].k4)
        }
    </script>
</head>
<body>

</body>
</html>